﻿@model IEnumerable<Microsoft.AspNet.Identity.EntityFramework.IdentityRole>
@{
    ViewBag.Title = "Admin Panel";
}

<h2>Admin panel | User roles</h2>
@Html.ActionLink("Manage Roles", "Index", "", new { style="font-weight:bold;" })  | @Html.ActionLink("Manage User Roles", "ManageUserRoles") | @Html.ActionLink("Manage Users", "ManageUsers")
<hr />
@Html.ActionLink("Add New Role", "Create")
<br />
<br />
<div>

    @foreach (var role in Model)
    {
        <p>
            <strong>@Html.DisplayFor(modelItem => role.Name) | </strong>
            @Html.ActionLink("Delete", "Delete", new { roleName = role.Name }) |
            @Html.ActionLink("Edit", "Edit", new { roleName = role.Name })
        </p>
    }
</div>